﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="LinkViewer.MainWindow"
      xmlns:prop="clr-namespace:LinkViewer.Properties"
        Title="JetNett Link Viewer Dashboard" Height="350" Width="525"
        WindowStyle="None" Background="Transparent" AllowsTransparency="True">
    <Canvas x:Name="Main_Canvas">
        <!--Main border to give a dropshadow to the window-->
        <Border x:Name="WindowDropShadow" Height="330" Width="505" Background="Transparent">
            <Border.BitmapEffect>
                <DropShadowBitmapEffect Color="Black" Direction="320" ShadowDepth="5" Opacity="0.5" Softness="3"/>
            </Border.BitmapEffect>
            
            <!--main container so we can dock everything to top, then fill bottom-->
            <DockPanel x:Name="MainContainer">
                <!--Title Bar-->
                <Border x:Name="TitleBar" MouseDown="TitleBarMouseDown" DockPanel.Dock="Top" CornerRadius="5,5,0,0" Height="24">
                <Border.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Offset="0.0" Color="#3580b9"/>
                        <GradientStop Offset="0.4" Color="#2279af"/>
                        <GradientStop Offset="0.5" Color="#02629f"/>
                        <GradientStop Offset="1" Color="#0064a6"/>
                    </LinearGradientBrush>
                </Border.Background>
          
                	<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
                        <Label Name="lblMainTitle" Foreground="#FFECF6FD" FontFamily="Fonts/#BastardusSans" FontSize="12" FontWeight="Bold" Margin="0,0,360,0">Link Viewer 2.0</Label>
                        <Button x:Name="bMinimize" Click="BMinimizeClick">
                            <Button.Template>
                                <ControlTemplate>
                                    <Image Height="16" Width="16" Margin="2,0,0,0" Source="Graphics/Minimize-Button.png"/>
                                </ControlTemplate>
                            </Button.Template>
                        </Button>
                        <Button x:Name="bClose" Click="BCloseClick">
                            <Button.Template>
                                <ControlTemplate>
                                    <Image Height="16" Width="16" Margin="2,0,2,0" Source="Graphics/Close-Button.png"/>
                                </ControlTemplate>
                            </Button.Template>
                        </Button>
                		

                	</StackPanel>
                </Border>
            	<Border x:Name="MenuBar" Height="35" DockPanel.Dock="Top" Padding="0" BorderThickness="0,3,0,0">
            		<Border.BorderBrush>
            			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            				<GradientStop Color="Black" Offset="0.009"/>
            				<GradientStop Color="#FF0E4064" Offset="1"/>
            				<GradientStop Color="#FFECF6FD" Offset="0.108"/>
            				<GradientStop Color="#FF67A6D4" Offset="0.828"/>
            			</LinearGradientBrush>
            		</Border.BorderBrush>
            		<Border.Background>
            			<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
            				<GradientStop Offset="0.0" Color="#3580b9"/>
            				<GradientStop Offset="1.4" Color="#2279af"/>
            				<GradientStop Offset="1.5" Color="#02629f"/>
            				<GradientStop Offset="1" Color="#0064a6"/>
            				<GradientStop Color="#FF245376" Offset="0.284"/>
            				<GradientStop Color="#FF3B8AC2" Offset="0.608"/>
            			</LinearGradientBrush>
            		</Border.Background>
                    <Menu Width="2000" Height="35" HorizontalAlignment="Left" Background="Transparent">
                        <MenuItem>
                            <MenuItem.Header>
                                <StackPanel Orientation="Horizontal">
                                    <Label FontFamily="Fonts/#BastardusSans" Foreground="White" FontSize="16">Open</Label> 
                                    <Image Width="6" Margin="0,2,0,0" Source="Graphics/down.png"></Image>
                                </StackPanel>
                            </MenuItem.Header>
                            <MenuItem Header="Database Directory..." BorderThickness="2" BorderBrush="#3580b9" IsCheckable="False" Click="BOpenDirectoryClick" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                            </MenuItem>
                            <MenuItem Header="Suspended Links"  BorderThickness="2" BorderBrush="#3580b9" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                                <MenuItem Header="All Suspended Links" Click="BOpenSuspendedClick">
                                    <MenuItem.Background>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientStop Offset="0.0" Color="#3580b9"/>
                                            <GradientStop Offset="1.4" Color="#2279af"/>
                                            <GradientStop Offset="1.5" Color="#02629f"/>
                                            <GradientStop Offset="1" Color="#0064a6"/>
                                            <GradientStop Color="#FF245376" Offset="0.284"/>
                                            <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                        </LinearGradientBrush>
                                    </MenuItem.Background>
                                </MenuItem>
                                <MenuItem Header="From Directory..." Click="BOpenSuspendedFolderClick">
                                    <MenuItem.Background>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientStop Offset="0.0" Color="#3580b9"/>
                                            <GradientStop Offset="1.4" Color="#2279af"/>
                                            <GradientStop Offset="1.5" Color="#02629f"/>
                                            <GradientStop Offset="1" Color="#0064a6"/>
                                            <GradientStop Color="#FF245376" Offset="0.284"/>
                                            <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                        </LinearGradientBrush>
                                    </MenuItem.Background>
                                </MenuItem>
                            </MenuItem>
                            <MenuItem Header="Elevated Links" Click="bOpenElevated_Click"  BorderThickness="2" BorderBrush="#3580b9" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                            </MenuItem>
                            <MenuItem Header="JetNett EZ Editor" Click="BEZEditorClick" Name="bEZEditor"  BorderThickness="2" BorderBrush="#3580b9" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                            </MenuItem>
                            <MenuItem Header="Link Page Editor" Click="BLpeClick" Name="bLPE"  BorderThickness="2" BorderBrush="#3580b9" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                            </MenuItem>
                        </MenuItem>
                        <MenuItem FontFamily="Fonts/#BastardusSans" Foreground="White" FontSize="16">
                            <MenuItem.Header>
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel Orientation="Horizontal">
                                        <Label FontFamily="Fonts/#BastardusSans" Foreground="White" FontSize="16">Advanced</Label>
                                        <Image Width="6" Margin="0,2,0,0" Source="Graphics/down.png"></Image>
                                    </StackPanel>
                                </StackPanel>
                            </MenuItem.Header>
                                <MenuItem Header="Suspend Links by URL" BorderThickness="2" BorderBrush="#3580b9" FontSize="12" IsCheckable="False" Click="MenuItemClick1" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                    <MenuItem.Background>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientStop Offset="0.0" Color="#3580b9"/>
                                            <GradientStop Offset="1.4" Color="#2279af"/>
                                            <GradientStop Offset="1.5" Color="#02629f"/>
                                            <GradientStop Offset="1" Color="#0064a6"/>
                                            <GradientStop Color="#FF245376" Offset="0.284"/>
                                            <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                        </LinearGradientBrush>
                                    </MenuItem.Background>
                            </MenuItem>
                            <MenuItem Header="UnSuspend Links by URL" BorderThickness="2" BorderBrush="#3580b9" FontSize="12" IsCheckable="False" Click="MenuItemClick2" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                            </MenuItem>
                            <MenuItem Header="White List Options" BorderThickness="2" BorderBrush="#3580b9" FontSize="12" IsCheckable="False" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                <MenuItem.Background>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                        <GradientStop Offset="0.0" Color="#3580b9"/>
                                        <GradientStop Offset="1.4" Color="#2279af"/>
                                        <GradientStop Offset="1.5" Color="#02629f"/>
                                        <GradientStop Offset="1" Color="#0064a6"/>
                                        <GradientStop Color="#FF245376" Offset="0.284"/>
                                        <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                    </LinearGradientBrush>
                                </MenuItem.Background>
                                <MenuItem Header="Add Link to Whitelist" BorderThickness="2" BorderBrush="#3580b9" FontSize="12" IsCheckable="False" Click="MiAddToWhiteListClick" x:Name="miAddToWhiteList" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                    <MenuItem.Background>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientStop Offset="0.0" Color="#3580b9"/>
                                            <GradientStop Offset="1.4" Color="#2279af"/>
                                            <GradientStop Offset="1.5" Color="#02629f"/>
                                            <GradientStop Offset="1" Color="#0064a6"/>
                                            <GradientStop Color="#FF245376" Offset="0.284"/>
                                            <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                        </LinearGradientBrush>
                                    </MenuItem.Background>
                                </MenuItem>
                                <MenuItem Header="Delete Link From Whitelist" BorderThickness="2" BorderBrush="#3580b9" FontSize="12" IsCheckable="False" Click="MiDeleteFromWhitelistClick" x:Name="miDeleteFromWhitelist" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                    <MenuItem.Background>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientStop Offset="0.0" Color="#3580b9"/>
                                            <GradientStop Offset="1.4" Color="#2279af"/>
                                            <GradientStop Offset="1.5" Color="#02629f"/>
                                            <GradientStop Offset="1" Color="#0064a6"/>
                                            <GradientStop Color="#FF245376" Offset="0.284"/>
                                            <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                        </LinearGradientBrush>
                                    </MenuItem.Background>
                                </MenuItem>
                                <MenuItem Header="View Whitelist" BorderThickness="2" BorderBrush="#3580b9" FontSize="12" IsCheckable="False" x:Name="miViewWhitelist" Click="MiViewWhitelistClick" Foreground="White" FontFamily="Fonts/#BastardusSans" >
                                    <MenuItem.Background>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                            <GradientStop Offset="0.0" Color="#3580b9"/>
                                            <GradientStop Offset="1.4" Color="#2279af"/>
                                            <GradientStop Offset="1.5" Color="#02629f"/>
                                            <GradientStop Offset="1" Color="#0064a6"/>
                                            <GradientStop Color="#FF245376" Offset="0.284"/>
                                            <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                        </LinearGradientBrush>
                                    </MenuItem.Background>
                                </MenuItem>
                            </MenuItem>
                            
                        </MenuItem>
                        <MenuItem FontFamily="Fonts/#BastardusSans" Click="MenuItemClick" Foreground="White" FontSize="16">
                            <MenuItem.Header>
                                <StackPanel Orientation="Horizontal">
                                    <Label FontFamily="Fonts/#BastardusSans" Foreground="White" FontSize="16">Help</Label>
                                </StackPanel>
                            </MenuItem.Header>

                        </MenuItem>
                        
                    </Menu>
            	</Border>
                <Grid x:Name="ContentContainer" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="505">
                	<Grid.ColumnDefinitions>
                		<ColumnDefinition Width="250" MinWidth="126.755"/>
                		<ColumnDefinition Width="285*" />
                	</Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="47*" />
                        <RowDefinition Height="161"/>
                        <RowDefinition Height="22*" />
                        <RowDefinition Height="40*" />
                    </Grid.RowDefinitions>
                	<Grid.Background>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="#FF817F7F" Offset="0"/>
                			<GradientStop Color="White" Offset="0.017"/>
                			<GradientStop Color="#FFABD3EF" Offset="1"/>
                			<GradientStop Color="#FFA5C1D6" Offset="0.888"/>
                		</LinearGradientBrush>
                	</Grid.Background>
                    <StackPanel Grid.Column="1">
                        <ProgressBar x:Name="progBarMain" Height="20" Visibility="Hidden" Margin="10,8,10,0"></ProgressBar>
                        <Label x:Name="lblProgress" Margin="10,-5,0,0"></Label>
                    </StackPanel>
                	<StackPanel VerticalAlignment="Top"/>

                  
                    <GroupBox Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1" Margin="10" Height="140" Foreground="#FFABD3EF" FontWeight="Bold" FontSize="16" FontFamily="Fonts/#BastardusSans" BorderBrush="#FFABD3EF" Header="Bad Link Details">
                        <StackPanel Margin="5,0,0,0">
                            <Label x:Name="lblSuspendedCount" MouseUp="BOpenSuspendedClick" Cursor="Hand" Foreground="Black" FontWeight="Normal" FontSize="12">Loading...</Label>
                            <Label x:Name="lblSuspendedSinceCount" Foreground="Black" FontWeight="Normal" FontSize="12"></Label>
                            <Label x:Name="lblElevatedCount" Foreground="Black" FontWeight="Normal" FontSize="12"></Label>
                            <Label x:Name="lblElevatedSinceCount" Foreground="Black" FontWeight="Normal" FontSize="12"></Label>
                        </StackPanel>
                        
                    </GroupBox>
                    
                   
                    
                    <StackPanel Orientation="Horizontal" Grid.Row="3" Height="35" Grid.Column="0">
                        <TextBlock Height="35" Foreground="#FFECF6FD" HorizontalAlignment="Right" FontSize="22" Margin="5,0,0,0" Name="lblDate" FontFamily="Fonts/#BastardusSans" Text="Sep 24th" VerticalAlignment="Top"></TextBlock>
                        <TextBlock Height="35" Foreground="#FFECF6FD" HorizontalAlignment="Right" FontSize="18" Name="lblTime" FontFamily="Fonts/#BastardusSans" Text="Sep 24th"></TextBlock>
                    </StackPanel>
                    
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Height="35" Foreground="#FFABD3EF" FontSize="26" FontFamily="Fonts/#BastardusSans" Text="Dashboard" Panel.ZIndex="1" Margin="10,12,0,0"></TextBlock>
                        <TextBlock Height="35" Foreground="#FFECF6FD" FontSize="22" FontFamily="Fonts/#BastardusSans" Text="Dashboard" Margin="-105,-10,-22,2"></TextBlock>
                    </StackPanel>
                    <StackPanel Margin="0,10,0,0" Grid.RowSpan="2" Grid.Row="2" Grid.Column="1">
                        <Button x:Name="bLinkChecker" Foreground="White" Margin="8" Height="30" Width="150" Click="BLinkCheckerClick">
                            <Button.Background>
                                <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                                    <GradientStop Offset="0.0" Color="#3580b9"/>
                                    <GradientStop Offset="1.4" Color="#2279af"/>
                                    <GradientStop Offset="1.5" Color="#02629f"/>
                                    <GradientStop Offset="1" Color="#0064a6"/>
                                    <GradientStop Color="#FF245376" Offset="0.284"/>
                                    <GradientStop Color="#FF3B8AC2" Offset="0.608"/>
                                </LinearGradientBrush>
                            </Button.Background>
                            <Button.BitmapEffect>
                                <OuterGlowBitmapEffect GlowColor="White"></OuterGlowBitmapEffect>
                            </Button.BitmapEffect> Link Checker
                        </Button>
                        <!--<CheckBox Grid.Row="2" x:Name="cbShowKnownIssues" Margin="4" Content="Show Known Issues on Launch" IsChecked="{Binding Source={x:Static prop:Settings.Default}, Path=ShowKnownIssues, Mode=TwoWay}" />-->
                    </StackPanel>
                </Grid>
        
    </DockPanel>
        </Border>
    </Canvas>
</Window>
